home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 37
/
Amiga Format CD37 (1999-02-16)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-03].iso
/
-readerstuff-
/
daithi_o'cuinn
/
random_ibrowse_anim_go!
< prev
next >
Wrap
Text File
|
1999-01-07
|
1KB
|
51 lines
/* Randomise Transfer Anim */
/* A small program to allow random IBrowse Transfer Anims */
/* D. O'Cuinn 1998/99 v1.03 */
address COMMAND
'failat 21'
if ~exists("IBrowse") then do
say "This program must be executed from inside the IBrowse directory!"
exit
end
/* how many have we got then? */
maxanims = 0
do i = 1 to 1000
if exists("Transfer_Anims/def_TransferAnimation." || i)
then maxanims = maxanims + 1
else
break
end
/* say "I have found " || maxanims || " Anims" */
if maxanims > 0 then do
anim = random(1,maxanims, time('S')) /* time supplied as seed */
anim = 'def_Transferanimation.' || anim
'copy Transfer_Anims/' || anim || ' TO images/def_TransferAnimation'
infoname = 'Transfer_Anims/' || anim || '.info'
if exists(infoname) then do
'copy "' || infoname || '" TO images/def_TransferAnimation.' || maxanims || '.info'
end
end
/* Try to find WBRun so as not to lose tooltype info */
'which >T:tempobrowse WBRun'
x = open('tempy', 'T:tempobrowse', 'R')
dummy = readch('tempy', 1)
if length(dummy) > 0 then
'WBRun <>NIL: Ibrowse'
else
'Run <>NIL: Ibrowse'
x = close('tempy')